package com.fight.strive.sys.modules.auth.controller;

import com.fight.strive.sys.modules.auth.service.StriveAuthService;
import com.fight.strive.sys.modules.common.ReStatus;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/admin/sys/auth")
public class StriveAuthAdminController {

    @Resource
    private StriveAuthService striveAuthService;

    @PostMapping("/logout")
    public ReStatus<String> logout() {
        striveAuthService.logout();
        return ReStatus.success();
    }
}
